package com.s666.demo.dao.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;


import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author xhh
 * @since 2018-11-26
 */
@Data
  public class Tag extends Model<Tag> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标签名
     */
    private String name;

    /**
     * 类别
     */
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
